import request from '@/utils/request'

// 查询考核申请列表
export function listAppraisal(query) {
  return request({
    url: '/system/appraisal/list',
    method: 'get',
    params: query
  })
}

// 查询考核申请详细
export function getAppraisal(id) {
  return request({
    url: '/system/appraisal/' + id,
    method: 'get'
  })
}

// 新增考核申请
export function addAppraisal(data) {
  return request({
    url: '/system/appraisal',
    method: 'post',
    data: data
  })
}

// 修改考核申请
export function updateAppraisal(data) {
  return request({
    url: '/system/appraisal',
    method: 'put',
    data: data
  })
}

// 删除考核申请
export function delAppraisal(id) {
  return request({
    url: '/system/appraisal/' + id,
    method: 'delete'
  })
}
